package com.ipay.wechat.dao;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.ipay.dao.BaseDao;
import com.ipay.wechat.pojo.PayorderEntity;
import com.ipay.wechat.pojo.TradeRecord;

public interface TradeRecordDao extends BaseDao<TradeRecord> {

	List<TradeRecord> findTradeRecordList(Map<String, Object> map);
	List<TradeRecord> findTkTradeRecordList(Map<String, Object> map);

	List<TradeRecord> findTradeRecordPage(TradeRecord payorder);
	List<String> findDateGrouping(TradeRecord payorder);
	//扇形统计图数据查询 queryMerchantInfoList
	List<Map<String,String>> queryMerchantInfoList(TradeRecord payorder);
	List<Map<String,String>> queryCategoryAmount(TradeRecord payorder);

	BigDecimal findTodaySumAmount(Map<String, Object> map);
	Integer findCountRecord(Map<String, Object> map);
	TradeRecord findTradeRecordDetails(String recordNo);

	TradeRecord queryByRecordNo(String recordNo);

	int updateRefundStart(TradeRecord payorder);
	int updateOrder(TradeRecord payorder);

	BigDecimal findRefundSumAmount(Map<String, Object> map);
	
	TradeRecord queryByParam(Map<String, String> map);
}
